package com.aidisp.service.impl;

import java.io.Serializable;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.aidisp.dao.GroupDao;
import com.aidisp.model.admin.Group;
import com.aidisp.service.GroupService;
@Service
public class GroupServiceImpl implements GroupService {
	
	@Autowired
	private GroupDao groupDao;
	
	@Override
	public void addGroup(Group group) {
		groupDao.save(group);
	}

	@Override
	public Group findGroupById(Serializable id) {
		Group group = groupDao.getById(Group.class, id);
		return group;
	}

	@Override
	public void removeGroup(Group group) {
		groupDao.delete(group);
	}
	
	
	
}
